﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Controls;

namespace App29.Common
{
    class TemplateSelector : DataTemplateSelector
    {
        protected override Windows.UI.Xaml.DataTemplate SelectTemplateCore(object item)
        {
            if (item is Models.ColorInfo)
                return DefaultTemplate;
            return SpacerTemplate;
        }

        public Windows.UI.Xaml.DataTemplate DefaultTemplate { get; set; }
        public Windows.UI.Xaml.DataTemplate SpacerTemplate { get; set; }
    }
}
